Skip to content

Conversation

@jsilll
Copy link
Contributor

@jsilll jsilll commented Dec 18, 2025

Description

Fixes excessive white space in side legends when legend items have short names. The issue was caused by a minimum width rule (min-inline-size: max(20%, 150px)) on the .side-legend-container in src/core/styles.scss.

Before

Screenshot 2025-12-18 at 09 57 17

After

Screenshot 2025-12-18 at 09 56 24

@jsilll jsilll requested a review from a team as a code owner December 18, 2025 09:58
@jsilll jsilll requested review from jperals and removed request for a team December 18, 2025 09:58
@jsilll
Copy link
Contributor Author

jsilll commented Dec 18, 2025

Hey @jperals ! Thanks for approving the change. I ran the visual tests locally and don't see anything out of the expected. The last one seems to have a layout problem on my local 🤔 .

index-test-ts-matches-snapshot-for-03-core-no-data-states-screenshot-mode-true-1-snap-diff

index-test-ts-matches-snapshot-for-03-core-no-data-states-screenshot-mode-true-1-snap-diff

index-test-ts-matches-snapshot-for-03-core-no-data-states-screenshot-mode-true-direction-rtl-1-snap-diff

index-test-ts-matches-snapshot-for-03-core-no-data-states-screenshot-mode-true-direction-rtl-1-snap-diff

index-test-ts-matches-snapshot-for-01-cartesian-chart-axes-and-thresholds-screenshot-mode-true-1-snap-diff

index-test-ts-matches-snapshot-for-01-cartesian-chart-axes-and-thresholds-screenshot-mode-true-1-snap-diff

@jsilll jsilll requested a review from jperals December 18, 2025 12:34
@jperals jperals enabled auto-merge December 22, 2025 09:06
@jperals jperals added this pull request to the merge queue Dec 22, 2025
Merged via the queue into cloudscape-design:main with commit af2dcf8 Dec 22, 2025
77 of 80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants